#pragma once
#include <functional>

using call_back_t = std::function<void(int)>;
class Task
{
public:
    Task()
    {}
    Task(int sockfd, call_back_t cb)
        : _sockfd(sockfd)
        , _cb(cb)
    {}
    void operator()()
    {
        _cb(_sockfd);
    }

private:
    int _sockfd;
    call_back_t _cb;
};
